x86/pvh: do not forward MADT Local APIC NMI structures to dom0
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 20 Dec 2022 12:43:37 +0000 (13:43 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Dec 2022 12:43:37 +0000 (13:43 +0100)
commitb7b34bd66ac77326bb49b10130013b4a9f83e4a2
tree17f782d932643544a0182e6230ba3445b2bf335c
parent9cbc04a95f8a7f7cc27901211cbe19a42850c4ed
x86/pvh: do not forward MADT Local APIC NMI structures to dom0

Currently Xen will passthrough any Local APIC NMI Structure found in
the native ACPI MADT table to a PVH dom0.  This is wrong because PVH
doesn't have access to the physical local APIC, and instead gets an
emulated local APIC by Xen, that doesn't have the LINT0 or LINT1
pins wired to anything.  Furthermore the ACPI Processor UIDs used in
the APIC NMI Structures are likely to not match the ones generated by
Xen for the Local x2APIC Structures, creating confusion to dom0.

Fix this by removing the logic to passthrough the Local APIC NMI
Structure for PVH dom0.

Fixes: 1d74282c45 ('x86: setup PVHv2 Dom0 ACPI tables')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: b39e6385250ccef9509af0eab9003ad5c1478842
master date: 2022-12-02 10:33:40 +0100
xen/arch/x86/hvm/dom0_build.c